<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <title>网页顶部</title>
</head>
<body>
<div class="logo"><a href="">健身房管理系统 V1.1</a></div>
<div class="open-nav"><i class="iconfont">&#xe699;</i></div>
<%--管理员权限右上侧--%>
<c:if test="${logUser.trole.roleid == 1}">
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">管理员</a>
            <dl class="layui-nav-child">
                <dd><a href="${pageContext.request.contextPath}/member/outlogin.action">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item"><a href="/">前台首页</a></li>
    </ul>
</c:if>
<%--教练权限右上角--%>
<c:if test="${logUser.trole.roleid == 2}">
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">${logUsername}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="${pageContext.request.contextPath}/coach/toOneselfPage.action">个人中心</a></dd>
                <dd><a href="${pageContext.request.contextPath}/coach/toCoachcourseSchedule.action">课程表</a></dd>
                <dd><a href="${pageContext.request.contextPath}/">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item"><a href="/">前台首页</a></li>
    </ul>
</c:if>
<%--会员权限右上角--%>
<c:if test="${logUser.trole.roleid == 3}">
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">${logUsername}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="${pageContext.request.contextPath}/member/toOneselfpage.action">个人中心</a></dd>
                <dd><a href="${pageContext.request.contextPath}/member/toMemcourseSchedule.action">课程表</a></dd>
                <dd><a href="${pageContext.request.contextPath}/member/outlogin.action">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item"><a href="/">前台首页</a></li>
    </ul>
</c:if>
</body>
</html>
